package Server;

import Logic.Objects.PlayEngine;

public class EngineFactory {
	private static EngineFactory factory;
	
	public static EngineFactory getInstance() {
		if (factory == null) {
			factory = new EngineFactory();
		}
		return factory;
	}

	public PlayEngine getEngine(long engineNum) {
		//PlayEngine current = (PlayEngine) PMF.getObject(PlayEngine.class, "engineNumber", Long.class, engineNum);
		PlayEngine current=null;
		if (current == null) {
			current = new PlayEngine();
			current.setEngineNumber(engineNum);
		}
		return current;
	}
	
}
